//
//  UIView+NavigationBarProperty.h
//  Reader
//
//  Created by yuemei on 2019/4/1.
//  Copyright © 2019 SF. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (NavigationBarProperty)
/// 固定导航栏高度 44
@property (assign, readonly, class) CGFloat fixedNavigationBarHeight;

/// {屏宽, 44 + 状态栏 maxY}
@property (assign, readonly, class) CGSize defalutNavigationBarSize;
/// 44 + 状态栏 maxY
@property (assign, readonly, class) CGFloat defalutNavigationBarHeight;
/// 状态栏 maxY
@property (assign, readonly, class) CGFloat defalutStatusBarMaxY;

/// 获取状态栏 maxY 传入是否必然存在
@property (nonatomic, readonly) CGFloat (^statusBarMaxY) (BOOL);
@property (nonatomic, readonly) CGFloat defaultTopViewHeight;
@property (nonatomic, readonly) CGFloat (^topViewHeight) (BOOL);
@end

@interface UIView (ViewSafeAreaInsets)

@property (nonatomic, readonly) UIEdgeInsets viewSafeAreaInsets;

@end
NS_ASSUME_NONNULL_END
